import request from '@/utils/request'

// 院校所在地列表
export function specialtyList() {
  return request({
    url: '/hce/major/getAllList.do',
    method: 'GET',
  })
}

// 获取专业列表
export function getSpecialtyList(params) {
  return request({
    url: '/hce/major/list.do',
    method: 'GET',
    params,
  })
}

// 获取专业类别列表
export function getMajorTypeList() {
  return request({
    url: '/hce/majorType/list.do',
    method: 'GET',
  })
}

// 添加专业信息
export function addSpecialtyInfo(data) {
  return request({
    url: '/hce/major/add.do',
    method: 'POST',
    data,
  })
}

// 修改专业信息
export function updateSpecialtyInfo(data) {
  return request({
    url: '/hce/major/update.do',
    method: 'POST',
    data,
  })
}

// 删除专业信息
export function deleteSpecialtyInfo(params) {
  return request({
    url: '/hce/major/remove.do',
    method: 'GET',
    params,
  })
}
